package com.cloud.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.entity.SysProjectAuth;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 项目授权管理
 *
 * @author yzj
 * @since 2022-12-07
 */
@Mapper
public interface SysProjectAuthMapper extends BaseMapper<SysProjectAuth> {

    /**
     * 分页项目授权
     *
     * @author yzj
     */
    public List<SysProjectAuth> selectSysProjectAuthList(@Param("param") SysProjectAuth param);

    /**
     * 根据类型查询密钥信息
     */
    public SysProjectAuth selectApplyProjectAuth(@Param("param") SysProjectAuth param);

    /**
     * 根据主键查询密钥信息
     *
     * @param id
     * @return
     */
    public SysProjectAuth selectProjectAuthInfo(@Param("id") Long id);

}
